package cn.pzhu.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by dongp on 2016/4/27.
 */
public class Achievement extends Model<Achievement> {

	public static final Achievement dao = new Achievement();

	/**
	 * 持有者
	 */
	public static final String column_userID = "userID";

	/**
	 * 分类
	 */
	public static final String column_categoryID = "categoryID";

	/**
	 * 成果名
	 */
	public static final String column_name = "name";

	/**
	 * 成熟度
	 */
	public static final String column_level = "level";

	/**
	 * 图片地址
	 */
	public static final String column_imgeurl = "imgeurl";

	/**
	 * 是否专利
	 */
	public static final String column_isPat = "isPat";

	/**
	 * 技术简介描述
	 */
	public static final String column_desc = "desc";

	/**
	 * 交易方式
	 */
	public static final String column_tradeMode = "tradeMode";

	/**
	 * 服务承诺
	 */
	public static final String column_serverPromise = "serverPromise";

	/**
	 * 供应商简介
	 */
	public static final String column_provideInfo = "provideInfo";

	/**
	 * 联系电话
	 */
	public static final String column_phone = "phone";

	/**
	 * 联系地址
	 */
	public static final String column_address = "address";

	/**
	 * 审核状态
	 */
	public static final String column_status = "status";

	/**
	 * 发布日期
	 */
	public static final String column_issueDate = "issueDate";

	public String getName() {
		return this.get("name");
	}

	public String getAcheievementID() {
		return this.getInt("acheievementID").toString();
	}

	public String getImgeurl() {
		return this.get("imgeurl");
	}

	public String getProvideInfo() {
		return this.get("provideInfo");
	}

	public String getLevel() {
		return this.get("level");
	}

	public String getTradeMode() {
		return this.getStr("tradeMode");
	}

	public String getMoney() {
		return this.getDouble("money").toString();
	}

	public String getTypeName() {
		return this.getStr("typeName");
	}

	public String getTypeVal() {
		return this.get("typeVal");
	}

}
